
<form id="form_add">
<input type="hidden" name="oper" value="{[$smarty.session.id]}" />
<input type="hidden" name="id" value="" />
<table>
	<tr>
		<td width="20%" align="right">负责人：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" size="12" title="{[$t.emp_|emp:'负责人']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>
		<td width="20%" align="right">日期：</td>
		<td width="30%"><input type="text" name="date" id="date" value="{[$smarty.now|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><input type="text" name="name" id="name" value="" size="16"> <select name='name_t' id='name_t'>
			{[html_options options=$tt_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td colspan="3"><select name='type' id='type'>
			{[html_options options=$type_option selected=-]}
		</select></td>
	</tr>
	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="4" name="content" id="content" cols="50"></textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript">
$(function() {
	
	Tip.emp('负责人');
	
	_change("input[id^='name']:visible", "select[id^='name_t']:visible");
	
	$('#date').datepicker(_date1_option);
	
	$('textarea').css("width", 400);
});
</script>
